package com.yunqiao.service.api.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunqiao.service.api.entity.EvaluateEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunqiao.service.api.vo.EvaluateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 文章表
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-02 15:03:56
 */
@Mapper
public interface EvaluateMapper extends BaseMapper<EvaluateEntity> {

    Double getScore(@Param("targetUserId") Integer targetUserId);

    IPage<EvaluateVo> PageList(Page<EvaluateEntity> page, @Param("ew") QueryWrapper<EvaluateEntity> queryWrapper);

    EvaluateVo details(@Param("id") Integer id);
}
